<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加人脸</title>
<script type="text/javascript" src="js/loginjs/jquery-2.0.3.js"></script>
<link rel="stylesheet" type="text/css" href="css/logincss/alert.css" />
</head>
<!-- 添加人脸的页面
author：戴布斯 -->
<body>
	<div class="dialog-inner">

		<div id="dialog-in">
			<div id="media">
				<h1 style="height: 20px; margin: 0px; padding: 0px; color: #00fffd">
					<strong>JCP</strong>人脸识别
				</h1>
				<video id="video" width="300px" height="196px" autoplay></video>
				<br />
				<!-- 戴布斯：修改canvas为hidden -->
				<canvas id="canvas" width="530" height="300" hidden="hidden"></canvas>
				<!-- 摄像头画面的js -->
				<!-- 戴布斯：重命名loginvideo.js -->
				<script src="js/addfacejs/addfacevideo.js"></script>
			</div>
			<%
				//获得userrId 
				String str = request.getParameter("userId");
				int userId = Integer.parseInt(str);
				/* out.print(userId); */
			%>
			<%-- 得到的ID是<%=userId%>
			<p id="IdText" value="<%=userId%>"><%=userId%></p> --%>
			<button onclick="openCamera()">打开摄像头</button>
			<!-- 戴布斯：添加onclick="takePhoto()" -->
			<button onclick="takePhoto(<%=userId%>)">上传人脸</button>
			<!-- 戴布斯：添加提示弹框 -->
			<div class="alert"></div>
		</div>

	</div>
</body>
</html>